@extends('admin.layout')

@section('content')
<div class="content-wrapper" style="min-height: 916px;">
        <!-- Content Header (Page header) -->
   <div id="breadcrumbs" class="breadcrumbs">
    <ol class="breadcrumb">
    <li><a href="javascript:void();"><i class="fa fa-home"></i>&nbsp;&nbsp;后台首页</a></li>
            
            <li><a href="javascript:void();">专题管理</a></li>  
            <li><a href="javascript:void();">添加专题</a></li>  
            <li><a href="javascript:void();"></a></li>          
    </ol>
</div>

        <div class="container-fluid">
            <div class="pull-right">
                <a data-original-title="返回" class="btn btn-default" title="" data-toggle="tooltip" href="{{url('/admin/title/titleClass')}}"><i class="fa fa-reply"></i></a>
              
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> 添加专题</h3>
                </div>
                <div class="panel-body ">   
                    <!--表单数据-->
                    <form action="/index.php/Admin/Topic/topicHandle" id="handleposition" method="post">                    
                        <!--通用信息-->
                    <div class="tab-content col-md-10">                       
                        <div id="tab_tongyong" class="tab-pane active">                           
                            <table class="table table-bordered">
                                <tbody>
                                <tr>
                                    <td class="col-sm-2">专题标题：</td>
                                    <td class="col-sm-4">
                                        <input type="text" value="" name="topic_title" class="form-control">
                                        <span style="color:#F00; display:none;" id="err_attr_name"></span>                                        
                                    </td>
                                    <td class="col-sm-4">标题不能超过24个字
                                    </td>
                                </tr>
                                <tr>
                                    <td>专题封面：</td>
                                    <td>
                                        <input type="text" value="" name="topic_image" id="imagetext"><input type="button" value="上传封面" onclick="GetUploadify(1,'imagetext','topic','')" class="button">
                                    </td>
                                    <td class="col-sm-4">请上传990像素x240像素的图片作为专题页面的封面图</td>
                                </tr>    
                                <!--
                                <tr>
                                    <td>专题背景颜色：</td>
                                    <td >
                                        <input class="txt" name="topic_background_color" type="color" value="" style="width:250px;"/>                                  
                                    </td>
                                    <td class="col-sm-4">背景色即专题页面CSS属性中"body{ background-color}"值，作为专业页面整体背景色使用，设置请使用十六进制形式(#XXXXXX)，默认留空为白色背景。</td>
                                </tr>  
                                <tr>
                                    <td>背景图选择：</td>
                                    <td>
                                        <input type="text" id="imagetext2" name="topic_background" value=""><input type="button" class="button" onClick="GetUploadify(1,'imagetext2','topic','')"  value="浏览"/>
                                    </td>
                                    <td class="col-sm-4">背景图即专题页面CSS属性中"body{ background-image}"值，选择本地图片上传作为页面整体背景。</td>
                                </tr>  
                                <tr>
                                    <td>背景图填充方式：</td>
                                    <td>
                                        <input type="radio" class="" name="topic_repeat" value="no-repeat"  />
                                        不重复
                                        <input type="radio" class="" name="topic_repeat" value="repeat"  />
                                        平铺   
                                        <input type="radio" class="" name="topic_repeat" value="repeat-x"  />
                                        x轴平铺
                                        <input type="radio" class="" name="topic_repeat" value="repeat-y"  />
                                        y轴平铺
                                    </td>
                                    <td class="col-sm-4">背景图填充方式即专题页面CSS属"body{ background-repeat}"值，选择不重复(no-repeat)|平铺(repeat)|x轴平铺(repeat-x)|y轴平铺(repeat-y)为背景图的填充方式。</td>
                                </tr>  
                                -->
                                <tr>
                                    <td>内容块距顶部：</td>
                                    <td>
                                        <input type="text" value="" name="topic_margin_top" class="form-control">
                                        
                                    </td>
                                    <td class="col-sm-4">像素</td>
                                </tr>
                                <tr>
                                    <td>专题内容：</td>
                                    <td colspan="2" class="col-sm-8">
                                        <textarea style=" width:900px; height:500px;" title="" name="topic_content" class="span12 ckeditor"></textarea>
                                    </td>
                                </tr>                                 
                                </tbody> 
                                <tfoot>
                                    <tr>
                                    <td><input type="hidden" value="add" name="act">
                                        <input type="hidden" value="" name="topic_id">
                                        <input type="hidden" value="2" name="topic_state" id="topic_state">
                                    </td>
                                    <td class="col-sm-4"><input type="buuton" value="保存草稿" onclick="adsubmit(1)" class="btn btn-primary"></td>
                                    <td class="text-right"><input type="buuton" value="发布专题" onclick="adsubmit(2)" class="btn btn-primary"></td></tr>
                                </tfoot>                               
                                </table>
                        </div>                           
                    </div>              
                    <input type="hidden" value="ac41400ec996cdb9ebf12b941fae0596_bb6f8d0821acb34c992238b5289e2c59" name="__hash__"></form><!--表单数据-->
                </div>
            </div>
        </div>
                    </div>

@endsection